/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.jm.financeiro.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.validation.constraints.Size;

/**
 *
 * @author joao
 */
@Entity
@Table(name = "proposta_case", catalog = "salao", schema = "public")
@NamedQueries({
    @NamedQuery(name = "PropostaCase.findAll", query = "SELECT p FROM PropostaCase p")})
public class PropostaCase implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "proposta_case_id_proposta_case_seq")
    @SequenceGenerator(name = "proposta_case_id_proposta_case_seq", sequenceName = "proposta_case_id_proposta_case_seq", initialValue = 1, allocationSize = 1)
    @Basic(optional = false)
    @Column(name = "id_proposta_case", nullable = false)
    private Integer idPropostaCase;
    @Size(max = 50)
    @Column(name = "dsc_aprov_lot", length = 50)
    private String dscAprovLot;
    @Size(max = 50)
    @Column(name = "dsc_nao_aprov_lot", length = 50)
    private String dscNaoAprovLot;
    @Size(max = 200)
    @Column(name = "dsc_melhor_via", length = 200)
    private String dscMelhorVia;
    @Size(max = 50)
    @Column(name = "dsc_rua", length = 50)
    private String dscRua;
    @Size(max = 50)
    @Column(name = "dsc_gabarito_altura", length = 50)
    private String dscGabaritoAltura;
    @Size(max = 50)
    @Column(name = "dsc_gabarito_cota", length = 50)
    private String dscGabaritoCota;
    @Size(max = 50)
    @Column(name = "dsc_recuo", length = 50)
    private String dscRecuo;
    @Size(max = 50)
    @Column(name = "dsc_operacao_urb", length = 50)
    private String dscOperacaoUrb;
    @Size(max = 50)
    @Column(name = "dsc_tomb_conde", length = 50)
    private String dscTombConde;
    @Size(max = 50)
    @Column(name = "dsc_tomb_conp", length = 50)
    private String dscTombConp;
    @Size(max = 50)
    @Column(name = "dsc_tomb_iphan", length = 50)
    private String dscTombIphan;
    @Size(max = 50)
    @Column(name = "dsc_patrimonio", length = 50)
    private String dscPatrimonio;
    @Size(max = 50)
    @Column(name = "dsc_prot_ambiental", length = 50)
    private String dscProtAmbiental;
    @Size(max = 50)
    @Column(name = "dsc_aet", length = 50)
    private String dscAet;
    @Size(max = 50)
    @Column(name = "dsc_corrego", length = 50)
    private String dscCorrego;
    @JoinColumn(name = "id_proposta", referencedColumnName = "id_proposta")
    @OneToOne(fetch = FetchType.EAGER)
    private Proposta idProposta;

    public PropostaCase() {
    }

    public PropostaCase(Integer idPropostaCase) {
        this.idPropostaCase = idPropostaCase;
    }

    public Integer getIdPropostaCase() {
        return idPropostaCase;
    }

    public void setIdPropostaCase(Integer idPropostaCase) {
        this.idPropostaCase = idPropostaCase;
    }

    public String getDscAprovLot() {
        return dscAprovLot;
    }

    public void setDscAprovLot(String dscAprovLot) {
        this.dscAprovLot = dscAprovLot;
    }

    public String getDscNaoAprovLot() {
        return dscNaoAprovLot;
    }

    public void setDscNaoAprovLot(String dscNaoAprovLot) {
        this.dscNaoAprovLot = dscNaoAprovLot;
    }

    public String getDscMelhorVia() {
        return dscMelhorVia;
    }

    public void setDscMelhorVia(String dscMelhorVia) {
        this.dscMelhorVia = dscMelhorVia;
    }

    public String getDscRua() {
        return dscRua;
    }

    public void setDscRua(String dscRua) {
        this.dscRua = dscRua;
    }

    public String getDscGabaritoAltura() {
        return dscGabaritoAltura;
    }

    public void setDscGabaritoAltura(String dscGabaritoAltura) {
        this.dscGabaritoAltura = dscGabaritoAltura;
    }

    public String getDscGabaritoCota() {
        return dscGabaritoCota;
    }

    public void setDscGabaritoCota(String dscGabaritoCota) {
        this.dscGabaritoCota = dscGabaritoCota;
    }

    public String getDscRecuo() {
        return dscRecuo;
    }

    public void setDscRecuo(String dscRecuo) {
        this.dscRecuo = dscRecuo;
    }

    public String getDscOperacaoUrb() {
        return dscOperacaoUrb;
    }

    public void setDscOperacaoUrb(String dscOperacaoUrb) {
        this.dscOperacaoUrb = dscOperacaoUrb;
    }

    public String getDscTombConde() {
        return dscTombConde;
    }

    public void setDscTombConde(String dscTombConde) {
        this.dscTombConde = dscTombConde;
    }

    public String getDscTombConp() {
        return dscTombConp;
    }

    public void setDscTombConp(String dscTombConp) {
        this.dscTombConp = dscTombConp;
    }

    public String getDscTombIphan() {
        return dscTombIphan;
    }

    public void setDscTombIphan(String dscTombIphan) {
        this.dscTombIphan = dscTombIphan;
    }

    public String getDscPatrimonio() {
        return dscPatrimonio;
    }

    public void setDscPatrimonio(String dscPatrimonio) {
        this.dscPatrimonio = dscPatrimonio;
    }

    public String getDscProtAmbiental() {
        return dscProtAmbiental;
    }

    public void setDscProtAmbiental(String dscProtAmbiental) {
        this.dscProtAmbiental = dscProtAmbiental;
    }

    public String getDscAet() {
        return dscAet;
    }

    public void setDscAet(String dscAet) {
        this.dscAet = dscAet;
    }

    public String getDscCorrego() {
        return dscCorrego;
    }

    public void setDscCorrego(String dscCorrego) {
        this.dscCorrego = dscCorrego;
    }

    public Proposta getIdProposta() {
        return idProposta;
    }

    public void setIdProposta(Proposta idProposta) {
        this.idProposta = idProposta;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idPropostaCase != null ? idPropostaCase.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PropostaCase)) {
            return false;
        }
        PropostaCase other = (PropostaCase) object;
        if ((this.idPropostaCase == null && other.idPropostaCase != null) || (this.idPropostaCase != null && !this.idPropostaCase.equals(other.idPropostaCase))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "br.jm.financeiro.entity.PropostaCase[ idPropostaCase=" + idPropostaCase + " ]";
    }
    
}
